package com.portal4kids.view;

import com.opensymphony.xwork2.ActionSupport;
import com.portal4kids.controller.InfoManager;
import com.portal4kids.model.Info;

public class InfoAction extends ActionSupport{
	private Info info;
	private InfoManager infoCotroller;
	
	public InfoAction() {
		infoCotroller = new InfoManager();
	}

	public String execute(){
		return SUCCESS;		
	}
	
	public String editInfo(){
		infoCotroller.editInfo(getInfo());
		return SUCCESS;		
	}

	public Info getInfo() {
		return info;
	}

	public void setInfo(Info info) {
		this.info = info;
	}
	

}
